#ifndef BOUNDINGBOX_H
#define BOUNDINGBOX_H

#include "GameHelper.h"
#include "ModelRender.h"

class BoundingBox {
    private:
        vec3 corner;
        vec3 lengths;
        ModelRender* model;
    
    public:
        BoundingBox();
        BoundingBox(vec3 topleftforwardCorner, vec3 initLengths);
        bool CollidesWith(BoundingBox other);
        void SetModelData(RenderManager rManager);
        void Render();
        
        vec3 GetCorner() { return vec3(corner); }
        vec3 GetLengths() { return vec3(lengths); }
        void SetLengths(vec3 newLengths) { lengths = vec3(newLengths); }
        
        void SetCorner(vec3 newCorner) { corner = vec3(newCorner); }
        void SetColor(vec3 color) { model->SetColor(color); }
};

#endif
